package com.jeff.android.lab.architecture.arouter.interceptor;

import android.content.Context;
import android.util.Log;

import com.alibaba.android.arouter.facade.Postcard;
import com.alibaba.android.arouter.facade.annotation.Interceptor;
import com.alibaba.android.arouter.facade.callback.InterceptorCallback;
import com.alibaba.android.arouter.facade.template.IInterceptor;

/**
 * @author: duff
 * @date: 2019/3/12
 * @since: 1.0.0
 */
@Interceptor(priority = 1, name = "拦截器1") // priority 值越小，优先级越高
public class OneInterceptor implements IInterceptor {

    @Override
    public void process(Postcard postcard, InterceptorCallback callback) {
        Log.d("dingfeng", "OneInterceptor process ... ");
        callback.onContinue(postcard);
    }

    @Override
    public void init(Context context) {
    }

}
